import http from "./http";
import qs from "qs";
// 出款管理-列表
export const withdrawalList = (params) => {
  return http.get("/manager/trans/withdrawalList", params)
}
// 出款管理-汇总
export const withdrawalListSum = (params) => {
  return http.get("/manager/trans/withdrawalListSum", params)
}
// 出款管理-审核拒绝
export const withdrawalAuditReject = (params) => {
  return http.post("/manager/trans/withdrawalAuditReject", qs.stringify(params))
}
// 出款管理-审核通过
export const withdrawalAuditPass = (params) => {
  return http.post("/manager/trans/withdrawalAuditPass", qs.stringify(params))
}

// 存款管理-列表
export const rechargeList = (params) => {
  return http.get("/manager/trans/rechargeList", params)
}
// 存款管理-汇总
export const rechargeListSum = (params) => {
  return http.get("/manager/trans/rechargeListSum", params)
}
// 存款管理-审核拒绝/会员存款管理
export const auditReject = (params) => {
  return http.post("/manager/trans/auditReject", qs.stringify(params))
}
// 存款管理-审核通过/会员存款管理
export const auditPass = (params) => {
  return http.post("/manager/trans/auditPass", qs.stringify(params))
}

// 存款管理/出款管理/会员存款管理-详情
export const queryRechargeByOrderNo = (params) => {
  return http.get("/manager/trans/queryRechargeByOrderNo", params)
}

// 会员存款管理-列表
export const memberRechargeList = (params) => {
  return http.get("/manager/trans/memberRechargeList", params)
}
// 会员存款管理-汇总
export const memberRechargeListSum = (params) => {
  return http.get("/manager/trans/memberRechargeListSum", params)
}
// eslint-disable-next-line import/no-anonymous-default-export
export default {
  rechargeListSum,
  rechargeList,
  withdrawalListSum,
  withdrawalList,
  queryRechargeByOrderNo,
  auditPass,
  auditReject,
  withdrawalAuditPass,
  withdrawalAuditReject,
  
  memberRechargeList,
  memberRechargeListSum,
}